QT       += core gui multimedia multimediawidgets
# build sucess on Qt6.7.1, Android SDK34

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

### zxing配置
#include($$PWD/qzxing/src/QZxing.pri)

# opencv库
include($$PWD/opencv.pri)

# zbar库(需要配合iconv库)
include($$PWD/zbar.pri)

SOURCES += \
    main.cpp \
    maincsv.cpp \
    mainedit.cpp \
    mainwindow.cpp \
    mainwindow_permission.cpp \
    mainzbar.cpp \
    mycamera.cpp \
    opencvrenderthread.cpp \
    renderthreadbase.cpp \
    toast.cpp \
    zbarrenderthread.cpp

HEADERS += \
    maincsv.h \
    mainedit.h \
    mainwindow.h \
    mainzbar.h \
    mycamera.h \
    opencvrenderthread.h \
    renderthreadbase.h \
    toast.h \
    zbarrenderthread.h

FORMS += \
    mainwindow.ui \
    mycamera.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    res.qrc

win32 {
}else{
    ANDROID_PACKAGE_SOURCE_DIR = \
        $$PWD/android
    DISTFILES += \
        android/AndroidManifest.xml \
        android/build.gradle \
        android/gradle.properties \
        android/gradle/wrapper/gradle-wrapper.jar \
        android/gradle/wrapper/gradle-wrapper.properties \
        android/gradlew \
        android/gradlew.bat \
        android/res/values/libs.xml \
        android/res/xml/qtprovider_paths.xml \
        android/src/org/qtproject/barcodetools/QtAndroid.java
}
